package com.example.shiwuyouproject.ui.fragment.home.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import com.example.shiwuyouproject.ui.fragment.home.fragment.LatestRecruitmentFragment

class ViewPagerAdapter(var tite:Array<String>,var manager: FragmentManager): FragmentPagerAdapter(manager) {
    override fun getCount(): Int {
      return  tite.size
    }

    override fun getItem(position: Int): Fragment {
       return LatestRecruitmentFragment.newInstance(position.toString())
    }
}